package com.chen.dataupload.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

@TableName("student")
public class Student implements Serializable {
    private Integer id;
    private String name;
    private Integer age;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createdDate;

    public Student() {
    }

    public Student(Integer id, String name, Integer age, Date createdDate) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.createdDate = createdDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }
}
